-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document and update default choice between :dict and :radixsort #720
document and update default choice between :dict and :radixsort #720
Conversation
Hold pending JuliaCollections/SortingAlgorithms.jl#51 |
After JuliaLang/julia#44230 it makes sense to change the default behavior to use default sort, which also changes this PR, so now hold pending Julia-1.9.0. |
Do you want to update this now that JuliaLang/julia#44230 has been merged? |
Thanks. So why did you revert the check that the length is higher than 100? Isn't
Actually we should probably do this soon as it's needed to move these functions to Statistics (JuliaStats/Statistics.jl#87 (comment)). |
it used to be a 100x performance loss to use radixsort on small sizes, now it's only about 1.5x, not worth the added complexity and runtime variability imo. |
Ah OK, you mean that thanks to JuliaCollections/SortingAlgorithms.jl#63 we use the radix sort implementation from Base now. |
Add potential reasons to choose
:dict
over:radixsort
as a counting algorithm to documentation, and update the default choice for small inputs.Addresses #517